package com.jojo.bubble.service.impl;

import com.jojo.bubble.entity.Logs;
import com.jojo.bubble.dao.LogsDao;
import com.jojo.bubble.service.LogsService;
import org.springframework.stereotype.Service;

import java.util.List;

import javax.annotation.Resource;

/**
 * 操作日志(Logs)表服务实现类
 *
 * @author jojo
 * @since 2023-08-08 13:35:27
 */
@Service("logsService")
public class LogsServiceImpl implements LogsService {
    @Resource
    private LogsDao logsDao;

    @Override
    public int count(Logs record) {
        return this.logsDao.count(record);
    }

    @Override
    public int insert(Logs record) {
        return this.logsDao.insert(record);
    }

    @Override
    public int update(Logs record) {
        return this.logsDao.update(record);
    }

    @Override
    public Logs getInfo(int id) {
        return this.logsDao.queryById(id);
    }

    @Override
    public List<Logs> getList(Logs record) {
        return this.logsDao.getList(record);
    }

    @Override
    public int delete(int id) {
        return this.logsDao.delete(id);
    }
}
